#!/bin/bash

# ----------------------------------------------------------------------------
#  MailClientSdk init script, version 1.0.0
#
# ----------------------------------------------------------------------------

[[ -e "../build_essential/mail_client_sdk" ]] && rm -rf "../build_essential/mail_client_sdk"

cp -r "../mail_client_sdk" "../build_essential/mail_client_sdk"

# 准备build
# 路径相对于sdk目录
cd ../build_essential/
set TEMP_PATH="./mail_client_sdk/build/default/outputs/default/mail_client_sdk.har"
set OUTPUT_PATH="../sample/sdk/mail_client_sdk.har"

# 编译mail_client_sdk模块
echo building...
./hvigorw --mode module -p module=mail_client_sdk assembleHar

# 回到tools目录
cd ../tools/
